import os
import sys


def restart_bot():
  python_executable = sys.executable
  os.execl(python_executable, python_executable, *sys.argv)
  